package cn.melon.view.admin.roll.ctr;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import cn.melon.mod.roll.RollRequest;
import cn.melon.view.admin.roll.AddRollDlg;

public class AddRollCtr implements ActionListener {
    
    private AddRollDlg addRollDlg;

    public AddRollCtr(AddRollDlg dlg) {
        this.addRollDlg = dlg;
    }

    @Override
    public void actionPerformed(ActionEvent e) {
        
        switch (e.getActionCommand()) {
            case "确定":
                RollRequest rollRequest = new RollRequest();
                rollRequest.addInfo(addRollDlg.getRoll());
                addRollDlg.setVisible(false);
                break;
            case "取消":
                addRollDlg.setVisible(false);
                break;
            default:
                break;
            }

        
    }

}
